package com.guanyu.u2cache.expression;

import org.springframework.expression.EvaluationException;

/**
 * @author zhouyunjian
 * @date 2023/11/13 14:51
 **/
@SuppressWarnings("serial")
public class VariableNotAvailableException extends EvaluationException {

    private final String name;

    public VariableNotAvailableException(String name) {
        super("Variable '" + name + "' is not available");
        this.name = name;
    }

    public String getName() {
        return this.name;
    }
}
